import request from '@/utils/request'

// 查询颁发机构列表
export function listCert_organization(query) {
    return request({
        url: '/cert/certOrganization/list',
        method: 'get',
        params: query
    })
}

// 查询颁发机构详细
export function getCert_organization(id) {
    return request({
        url: '/cert/certOrganization/' + id,
        method: 'get'
    })
}

// 新增颁发机构
export function addCert_organization(data) {
    return request({
        url: '/cert/certOrganization',
        method: 'post',
        data: data
    })
}

// 修改颁发机构
export function updateCert_organization(data) {
    return request({
        url: '/cert/certOrganization',
        method: 'put',
        data: data
    })
}

// 删除颁发机构
export function delCert_organization(id) {
    return request({
        url: '/cert/certOrganization/' + id,
        method: 'delete'
    })
}
